﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace FeatureSelection
{
    class Program
    {

        static void Main(string[] args)
        {
            //System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-us");
            //System.Threading.Thread.CurrentThread.CurrentCulture = ci;
            //StreamReader SR = new StreamReader(@"D:\Programowanie\FeatureSelection\iris_dataonly.txt");
            //int X = 150;
            //int Y = 5;
            //double[,] Data = new double[X, Y];
            //int k = -1;
            //string s;
            //while ((s = SR.ReadLine()) != null)
            //{
            //    k++;
            //    string[] tab = s.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries);
            //    for (int i = 0; i < Y; i++)
            //    {
            //        Data[k, i] = double.Parse(tab[i]);//Convert.ToDouble(tab[i]);
            //    }

            //}
            //FeatureSelection FS = new FeatureSelection();
            //FS.ColumnYNumber = 4;
            //FS.NumberOfNearestNeigbors = 5;
            //double[,] Data2 = FS.ForwardSelection(Data, @"D:\Programowanie\FeatureSelection\wynik_iris7.txt");
            //StreamWriter sw = new StreamWriter(@"D:\Programowanie\FeatureSelection\sorteddata_iris3.txt");
            //for (int i = 0; i < Data2.GetLength(0); i++)
            //{
            //    for (int h = 0; h < Data2.GetLength(1); h++)
            //    {
            //        sw.Write(Data2[i, h] + "  ");
            //    }
            //    sw.WriteLine();
            //}
            //sw.Close();
            //Console.WriteLine("Koniec!");
        }
    }
}
